package org.dromara.system.domain.bo;

import org.dromara.system.domain.VariableAssociationParam;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

import java.math.BigDecimal;

/**
 * 变量参数关联业务对象 variable_association_param
 *
 * @author Lion Li
 * @date 2024-10-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VariableAssociationParam.class, reverseConvertGenerate = false)
public class VariableAssociationParamBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     *
     */
    private Long variableId;

    /**
     * 上线阀值
     */
    @NotNull(message = "上线阀值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String upThreshold;

    /**
     * 上线阀值描述
     */
    private String upThresholdDesc;

    /**
     * 下限阀值
     */
    @NotNull(message = "下限阀值不能为空", groups = {AddGroup.class, EditGroup.class})
    private String downThreshold;

    /**
     * 下线阀值描述
     */
    private String downThresholdDesc;

    /**
     * 状态值
     */
    private String statusValue;

    /**
     * 状态值描述
     */
    private String statusValueDesc;

    /**
     * 标识符 代表这个值是放大还是缩小  1缩小2放大
     */
    private Long identifier;

    /**
     * 倍数
     */
    private Long multiple;

    /**
     * 等级
     */
    @NotNull(message = "等级不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long level;


}
